;; C# 配置

(require 'init-package)

;; (when (maybe-require-package 'csharp-mode)
;;   (autoload 'csharp-mode "csharp-mode"
;;     "在需要的时候再加载 csharp-mode。")
;;   (add-to-list 'auto-mode-alist
;;                '("\\.cs\\'" . csharp-mode)))

(setq auto-mode-alist
      (append '(("\\.csproj\\'" . nxml-mode)
                ("\\.xaml\\'" . nxml-mode)
                ("\\.axaml\\'" . nxml-mode))
              auto-mode-alist))

(add-hook 'csharp-mode-hook
          (lambda ()
            (eglot-ensure)
            ))

(provide 'init-csharp)
